module.exports = {
    devServer: {
      proxy: {
        '/api': {
          target: 'http://47.109.31.142:9080',
          changeOrigin: true
        }
      }
    },
    css: { extract: false },
    configureWebpack: config => {
      config.externals = {
        vue: 'Vue',
        vuex: 'Vuex',
        axios: 'axios',
        lodash: '_',
        moment: 'moment',
        'js-cookie': 'Cookies',
        echarts: 'echarts',
        'echarts-stat': 'ecStat'
      }
    }
  }